﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrPhuongList.ascx.cs"
    Inherits="TCHSHue.Modules.AdminControl.Phuong.ctrPhuongList" %>
<div id="phuong" class="inbox">
    <h3 class="tieude">
        Danh sách phường thành phố Huế</h3>
    <table style="width: 100%">
        <tr>
            <td colspan="2" class="line">
            </td>
        </tr>
    </table>
    <br />
    <asp:HyperLink ID="HyperLink1" CssClass="box add" NavigateUrl="~/Modules/Admin.aspx?mode=themphuong"
        runat="server">Tạo mới</asp:HyperLink>
    <div class="tableAdmin">
        <asp:GridView ID="gridPhuong" runat="server" AutoGenerateColumns="False" EnableModelValidation="True">
            <Columns>
                <asp:BoundField DataField="tenPhuong" HeaderText="Phường" />
                <asp:TemplateField HeaderText="Thao tác">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Style/Images/edit.png"
                        CommandArgument='<%# Eval("maPhuong") %>' OnCommand="RedirectEdit" />
                    <asp:ImageButton ID="ImageButton2" CommandArgument='<%#Eval("maPhuong") %>' OnCommand="Delete"
                        OnClientClick="return confirm('Bạn có chắc muốn xóa?')" runat="server" ImageUrl="~/Style/Images/delete.png" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                Hiện tại không có phường nào
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    
</div>
